package com.caregiver.watch.business.care.model.dto;

import com.caregiver.watch.business.care.model.po.FenceSetting;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @description: 更新围栏设置参数
 * @program: caregiver-watch
 * @author: 疆戟
 * @create: 2025-10-06 11:45
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "更新围栏设置参数")
public class UpdateFenceSettingParam extends AddFenceSettingParam {

    @Schema(description = "围栏ID")
    private Long fenceId;


    @Override
    public FenceSetting toPo(Long userId) {
        FenceSetting po = super.toPo(userId);
        po.setId(fenceId);
        return po;
    }
}
